package org.scohen.juploadr.uploadapi.zooomr.authentication;

import java.util.SortedMap;
import java.util.TreeMap;

import org.scohen.juploadr.uploadapi.zooomr.DefaultZooomrHandler;
import org.scohen.juploadr.uploadapi.zooomr.ZooomrMethod;
import org.scohen.juploadr.uploadapi.zooomr.ZooomrRestApi;

public class GetFrob extends ZooomrMethod {
    private String frob;

    public DefaultZooomrHandler getResponseHandler() {
        return new GetFrobHandler(this);
    }

    public SortedMap<String, String> getParams() {
        SortedMap<String, String> params = new TreeMap<String, String>();
        params.put("method", "zooomr.auth.getFrob");
        params.put("api_key", ZooomrRestApi.ZOOOMR_API_KEY);
        return params;
    }

    /**
     * @return Returns the frob.
     */
    public String getFrob() {
        return frob;
    }

    /**
     * @param frob
     *            The frob to set.
     */
    public void setFrob(String frob) {
        this.frob = frob;
    }

    public boolean isAuthorized() {
        return false;
    }

}
